//本地测试双向绑定数据
DZApp.controller("station_new",function($scope,$http){


	$scope.shanchu = function(index){
	    //删除选定的对象
	    $scope.mynews.splice($scope.currentIndex,1);
	};
	
	
	$scope.baocun = function(){
		$scope.division = function(){
			$http({
				method:'POST',
				url:'',
				data:$param(),
				headers:{
					'Content-Type': 'application/x-www-form-urlencoded;charset=utf-8'
				},
				cache: false
			}).success(function(data) {
				console.log(data);
			});
		}
		
		$http({
			method: 'POST',
			url: '/appserver/manage/serviceStation/ServiceStationAdd',
			data: $.param($scope.addStation),
			headers: {
				'Content-Type': 'application/x-www-form-urlencoded;charset=utf-8'
			},
			cache: false
		}).success(function(data) {
			console.log(data);
			$scope.addStation = data.data
		});
	}
	
	$http({
		method: 'POST',
		url: '/appserver/manage/serviceStation/ServiceStationSelect',
		data: $.param({service_station_id:'',service_station_name:'',description:'',business_time:'',contact_phone:'',province_id:'',city_id:'',area_id:'',outlets_addr:'',longitude:'',latitude:'',create_time:'',update_time:'',oper_id:'',valid_flag:''}),
		headers: {
			'Content-Type': 'application/x-www-form-urlencoded;charset=utf-8'
		},
		cache: false
	}).success(function(data) {
		console.log(data);
		$scope.mynews = data.data
	});
	
	
});


